<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    const p = new Promise((resolve, reject)=> {
      setTimeout(()=> {
        resolve(2)
      }, 2000)
    })
    // const p1 = Promise.resolve(p).then((res)=> {
    //   console.log(res)
    // })
    const p1 = Promise.resolve(p)
    console.log( p1 === p )


  </script>
</body>
</html>